import axios from "@/utils/axios";
//凭证列表
export const VoucherListApi = (parmas) => {
    return axios.get("/credential/page", parmas);
};
//凭证申请
export const VoucherCreateApi = (body) => {
    return axios.post("/credential/apply", body);
};
//凭证属性
export const VoucherAttributeApi = (parmas) => {
    return axios.get("/cpt/property", parmas);
};
//凭证明细
export const VoucherInfoApi = (credentialId) => {
    return axios.get(`/credential/detail/${credentialId}`);
};
//创建授权
export const EmpowerCreateApi = (parmas) => {
    return axios.post(`/did/grant`,parmas);
};

//凭证吊销
export const VoucherDeleteApi = (parmas) => {
    return axios.post(`/credential/revoke`,parmas);
};

// 吊销列表
export const RevokeListApi = (parmas) => {
    return axios.get(`/credential/revocation/page`,parmas);
};

//授权给我的凭证列表
export const AuthorizeMeListApi = (parmas) => {
    return axios.get(`/credential/grantee/page`,parmas);
};

//我授权的凭证列表
export const IAuthorizedItListListApi = (parmas) => {
    return axios.get(`/credential/grant/page`,parmas);
};